package com.itboye.ihomebank.activity.myzhujia;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.itboye.ihomebank.R;
import com.itboye.ihomebank.base.BaseOtherActivity;
import com.itboye.ihomebank.custom.LoweLinearLayout;


/**
 * A login screen that offers login via email/password.
 */
public class RepairJuJiaActivity extends BaseOtherActivity {
    View v_statusbar;
    ImageView close_icon;
    TextView add_shap_title_tv;
    LoweLinearLayout chuang,chufang,loushui,cesuo,diandeng,ranqi,matong,qiangmian,menchuang,qita;
    int type=1;
    String repair_id;
    @Override
    protected int layout_id() {
        return R.layout.activity_repair_jujia;
    }

    @Override
    protected void onInitController() {

    }

    @Override
    protected void onInit() {
        setStatusBarHeight(v_statusbar);
        type=getIntent().getIntExtra("type",1);
        add_shap_title_tv.setText("居家维修");
    }

    @Override
    protected void onReadIntent(Bundle bundle) {

    }

    @Override
    public void onClick(View v) {
        Intent intent=null;
        switch (v.getId()) {
            case R.id.close_icon:
                finish();
                break;
            case R.id.chuang:
                intent=new Intent(this,ActivityHomeRepair.class);
                intent.putExtra("title","居家维修");
                intent.putExtra("type",type);
                intent.putExtra("repair_id","6366");
                startActivity(intent);
                break;
            case R.id.chufang:
                intent=new Intent(this,ActivityHomeRepair.class);
                intent.putExtra("title","居家维修");
                intent.putExtra("repair_id","6367");
                intent.putExtra("type",type);
                startActivity(intent);
                break;
            case R.id.loushui:
                intent=new Intent(this,ActivityHomeRepair.class);
                intent.putExtra("title","居家维修");
                intent.putExtra("repair_id","6368");
                intent.putExtra("type",type);
                startActivity(intent);
                break;
            case R.id.cesuo:
                intent=new Intent(this,ActivityHomeRepair.class);
                intent.putExtra("title","居家维修");
                intent.putExtra("repair_id","6369");
                intent.putExtra("type",type);
                startActivity(intent);
                break;
            case R.id.diandeng:
                intent=new Intent(this,ActivityHomeRepair.class);
                intent.putExtra("title","居家维修");
                intent.putExtra("repair_id","6370");
                intent.putExtra("type",type);
                startActivity(intent);
                break;
            case R.id.ranqi:
                intent=new Intent(this,ActivityHomeRepair.class);
                intent.putExtra("title","居家维修");
                intent.putExtra("repair_id","6371");
                intent.putExtra("type",type);
                startActivity(intent);
                break;
            case R.id.matong:
                intent=new Intent(this,ActivityHomeRepair.class);
                intent.putExtra("title","居家维修");
                intent.putExtra("repair_id","6372");
                intent.putExtra("type",type);
                startActivity(intent);
                break;
            case R.id.qiangmian:
                intent=new Intent(this,ActivityHomeRepair.class);
                intent.putExtra("title","居家维修");
                intent.putExtra("repair_id","6373");
                intent.putExtra("type",type);
                startActivity(intent);
                break;
            case R.id.menchuang:
                intent=new Intent(this,ActivityHomeRepair.class);
                intent.putExtra("title","居家维修");
                intent.putExtra("repair_id","6374");
                intent.putExtra("type",type);
                startActivity(intent);
                break;
            case R.id.qita:
                intent=new Intent(this,ActivityHomeRepair.class);
                intent.putExtra("title","居家维修");
                intent.putExtra("repair_id","6365");
                intent.putExtra("type",type);
                startActivity(intent);
                break;
        }
    }
}

